import request from '@/utils/request'

// 查询节庆活动列表
export function listFestivals(query) {
  return request({
    url: '/TraditionalCultureSys/festivals/list',
    method: 'get',
    params: query
  })
}

// 查询节庆活动详细
export function getFestivals(id) {
  return request({
    url: '/TraditionalCultureSys/festivals/' + id,
    method: 'get'
  })
}

// 新增节庆活动
export function addFestivals(data) {
  return request({
    url: '/TraditionalCultureSys/festivals',
    method: 'post',
    data: data
  })
}

// 修改节庆活动
export function updateFestivals(data) {
  return request({
    url: '/TraditionalCultureSys/festivals',
    method: 'put',
    data: data
  })
}

// 删除节庆活动
export function delFestivals(id) {
  return request({
    url: '/TraditionalCultureSys/festivals/' + id,
    method: 'delete'
  })
}
